using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class TestScripts : MonoBehaviour
{
    public InputField input;
    public Button button;

    public void Start()
    { 
        input = GetComponentInChildren<InputField>();
        button = GetComponentInChildren<Button>();
        button.onClick.AddListener(Test);
    }

    public void Test()
    {
        string s =input.text.Trim();
        if (s!="")
        {
            Debug.Log("GetSeedByInput");
            SeedManager.Instance.GetSeedByInput(input.text);
            
        }
        else
        {
            SeedManager.Instance.GetSeedByTime();
            Debug.Log("GetSeedByTime");
            Debug.Log("bs_seed:" + SeedManager.Instance.bs_seed);
        }

        MapManager.Instance.CreateMap(SeedManager.Instance.b_seed, 1);
    }
    







}
